package com.example.sentence.service;

import com.example.sentence.entity.Senten;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 句子service
 * @author Administrator
 */
public interface SentenceService {
    /**
     * 查询句子集合
     * @return 句子集合
     */
    List<Senten> findAll();

    /**
     * 新增句子
     * @param senten
     */
    @Transactional(rollbackFor = Exception.class)
    void save(Senten senten);
}
